﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;
using System.Diagnostics;

namespace _1945
{
    class Powerup : GameObject
    {

        MovementPattern movementPattern;

        public Powerup(Game game, Texture2D gameSpriteSheet, Vector2 startpos, Vector2 speed, Sprite sprite, Rectangle gameScreenBounds, MovementPattern movementPattern)
            : base(game, gameSpriteSheet, startpos, speed, Vector2.Zero, sprite, gameScreenBounds)
        {
            this.movementPattern = movementPattern;
        }

        public void Update(GameTime gameTime, Vector2 playerPosition, int playerWidth)
        {
            direction = movementPattern.getDirection(position, speed, gameTime.TotalGameTime);
            
            base.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);
        }
    }
}
